package com.wicket.okrcomponent.biz.service.dto.common;

import com.wicket.okrcomponent.common.dto.BaseDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.validation.constraints.NotNull;
import lombok.Data;
import java.util.Objects;

/**
 * @desc ExcCycleSetFieldsMergeDto
 * @使用场景
 */
@Data
public class ExcCycleSetFieldsMergeDto extends BaseDto implements Serializable {

  /**
   * 执行周期阶段ID
   */
  @ApiModelProperty("执行周期阶段ID")
  private String executeCycleStageId;

  /**
   * 被评对象目标周期ID
   */
  @ApiModelProperty("被评对象目标周期ID")
  private String evaObjTargetCycleId;

  /**
   * 周期ID
   */
  @ApiModelProperty("周期ID")
  private String cycleId;

  /**
   * 周期类型标识
   */
  @ApiModelProperty("周期类型标识")
  private String cycleTypeCode;

  /**
   * 是否父周期 TRUE:是 FALSE:否
   */
  @ApiModelProperty("是否父周期")
  private String isFatherCycle;

  /**
   * 是否中期 TRUE:是 FALSE:否
   */
  @ApiModelProperty("是否中期")
  private String isMetaphase;

  /**
   * 是否子周期 TRUE:是 FALSE:否
   */
  @ApiModelProperty("是否子周期")
  private String isSubCycle;
@Override
  public boolean equals(Object o) {
      if (this == o) return true;
      if (o == null || getClass() != o.getClass()) return false;
      if (!super.equals(o)) return false;
      ExcCycleSetFieldsMergeDto that = (ExcCycleSetFieldsMergeDto) o;
      return  executeCycleStageId == that.executeCycleStageId&&evaObjTargetCycleId == that.evaObjTargetCycleId&&cycleId == that.cycleId&&cycleTypeCode == that.cycleTypeCode&&isFatherCycle == that.isFatherCycle&&isMetaphase == that.isMetaphase&&isSubCycle == that.isSubCycle;
    }
@Override
  public int hashCode() {
      return Objects.hash(super.hashCode(), executeCycleStageId,evaObjTargetCycleId,cycleId,cycleTypeCode,isFatherCycle,isMetaphase,isSubCycle);
    }

}
